package neu.soft.feignclient;

import neu.soft.entity.DO.City;
import neu.soft.entity.Good;
import neu.soft.entity.Vendor;
import neu.soft.vo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(value = "operation-server", fallbackFactory = OperationServerFeignClientFallBackFactory.class)
public interface OperationServerFeignClient {

    @PostMapping("/goods/batchFind")
    List<Good> findGoods(@RequestBody List<String> code);

    @PostMapping("/vendor/getByName")
    public Vendor getByName(String vendorName);

    @PostMapping("/province/getInfo")
    ResultBean<City> getInfo(@RequestBody Map<String,Object> map);
}
